package me.zk.annotation;

import java.lang.annotation.*;
import java.util.concurrent.TimeUnit;

/**
 * @author zhangkai
 * @date 2023/6/30 17:39
 */
@Documented
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Limit {

    //
    String key() default "";

    double permitsPerSecond();

    long timeout();

    TimeUnit timeunit() default TimeUnit.MICROSECONDS;

    String msg() default "系统繁忙，请稍后再试";
}
